<?php echo $this->render('_rootline') ?>

<h1><?php echo $helper->page('title') ?></h1>

<?php if($this->forums->count() > 0): ?>
<table border="0" class="forums">
    <tr class="heading">
        <td colspan="4"><?php echo $helper->page('title') ?></td>
    </tr>
    <tr class="subheading">
        <td class="col1"><?php echo $helper->translate('Forum') ?></td>
        <td class="col2"><?php echo $helper->translate('Themen') ?></td>
        <td class="col3"><?php echo $helper->translate('Beitraege') ?></td>
        <td class="col4"><?php echo $helper->translate('Letzter Beitrag') ?></td>
    </tr>
    <?php foreach($this->forums AS $forum): ?>
        <tr>
            <td class="col1"><a class="forum" href="<?php echo $helper->url()->toPage($forum->uid) ?>"><?php echo $helper->escape($forum->title) ?></a><br /><span><?php echo $helper->escape($forum->subtitle) ?></span></td>
            <td class="col2"><?php echo $forum->topic_count ?></td>
            <td class="col3"><?php echo $forum->post_count ?></td>
            <td class="col4"><?php if(!empty($forum->last_post)): ?>
                    <?php echo $helper->datetime($forum->last_post) ?><br />
                    <?php /* echo $forum->last_post_author */ ?>
                    <?php echo $helper->profileLink($forum->last_post_user_id, $forum->last_post_author) ?>
                <?php endif; ?></td>
        </tr>
    <?php endforeach; ?>
</table>
<?php endif; ?>